package com.chenchen.tiguan.venue.domain;

import com.chenchen.tiguan.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chenchen.tiguan.common.annotation.Excel;
import com.chenchen.tiguan.common.core.domain.BaseEntity;

/**
 * 用户预约记录对象 venue_reservation
 * 
 * @author chenchen
 * @date 2025-04-14
 */
public class VenueReservation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约唯一标识 */
    private Long reservationId;

    /** 关联用户ID（需应用层校验） */
    @Excel(name = "关联用户ID", readConverterExp = "需=应用层校验")
    private Long userId;

    /** 关联时间段ID（需应用层校验） */
    @Excel(name = "关联时间段ID", readConverterExp = "需=应用层校验")
    private Long slotId;

    /** 状态（1待确认，2已生效，3已取消） */
    @Excel(name = "状态", readConverterExp = "1=待确认，2已生效，3已取消")
    private Long status;

    private SysUser sysUser;

    private VenueTimeSlot venueTimeSlot;

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public VenueTimeSlot getVenueTimeSlot() {
        return venueTimeSlot;
    }

    public void setVenueTimeSlot(VenueTimeSlot venueTimeSlot) {
        this.venueTimeSlot = venueTimeSlot;
    }

    public void setReservationId(Long reservationId)
    {
        this.reservationId = reservationId;
    }

    public Long getReservationId() 
    {
        return reservationId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSlotId(Long slotId) 
    {
        this.slotId = slotId;
    }

    public Long getSlotId() 
    {
        return slotId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reservationId", getReservationId())
            .append("userId", getUserId())
            .append("slotId", getSlotId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("sysUser", getSysUser())
            .append("venueTimeSlot", getVenueTimeSlot())
            .toString();
    }
}
